(SET rexxhelp "This will copy some example ARexx scripts to your \"Rexx\" directory")
(SET languagehelp "Beginnig with OS 2.1 MathScript can be localized to your local language. English is built-in and so always available.\nWith OS 2.1 the following languages are also available:\ndeutsch\nfrançais")
(SET formulahelp "This will copy some example formulas to your \"Formulas\" directory")
(SET startuphelp "MathScript needs an assign pointing to its directory to operate correctly. By selecting PROCEED an assign will be added to your User-Startup file to make this assign everytime you boot")
(SET docshelp "The MathScript package includes AmigaGuide Documents in the following languages:\nenglish\ndeutsch")
(SET doctype_help "AmigaGuide is the standard hypertext format.\nIt has to be displayed by either Multiview or AmigaGuide.\n\n")
(SET NoGuide_help "If you select \"No\" the documentation will be installed in the AmigaGuide format. Otherwise a plain Ascii documentation will be installed!\n\n")
(SET ziel (ASKDIR (PROMPT "Where shall the directory 'MathScript' be created?") (HELP @askdir-help) (DEFAULT @default-dest) ))
(COPYFILES (SOURCE "fonts") (ALL) (Dest (TACKON ziel "fonts")))
(COPYFILES (SOURCE "init.ps") (DEST ziel))
(COPYFILES (SOURCE "metrics") (DEST ziel))
(COPYFILES (SOURCE "PSFont") (DEST ziel))
(MAKEDIR (TACKON ziel "rexx"))
(IF (ASKBOOL (PROMPT "Shall the example ARexx scripts be installed?") (HELP rexxhelp))
(COPYFILES (SOURCE "rexx") (DEST (TACKON ziel "rexx")) (ALL)))
(MAKEDIR (TACKON ziel "Formulas") (INFOS))
(IF (ASKBOOL (PROMPT "Shall the example formulas be installed?") (HELP formulahelp))
(COPYFILES (SOURCE "Formulas") (DEST (TACKON ziel "Formulas")) (ALL)))
(IF (>= (SUBSTR (GETENV "Workbench") 0 2) 38) ; ab OS 2.1
(
(SET sprachen (ASKOPTIONS (PROMPT "Which additional languages shall be installed?") (HELP languagehelp)
(CHOICES "deutsch" "français") ))
(MAKEDIR (TACKON ziel "Catalogs"))
(IF (IN sprachen 0)
(COPYFILES (SOURCE "Catalogs/deutsch/MathScript.catalog") (DEST (TACKON ziel "Catalogs/deutsch"))))
(IF (IN sprachen 1)
(COPYFILES (SOURCE "Catalogs/français/MathScript.catalog") (DEST (TACKON ziel "Catalogs/français"))))
(COPYFILES (SOURCE "Catalogs/readme") (DEST (TACKON ziel "Catalogs")))
(COPYFILES (SOURCE "Catalogs/newlanguage.ct") (DEST (TACKON ziel "Catalogs")))
)
)
(IF (EXISTS "sys:utilities/Multiview")
(SET def-tool "SYS:Utilities/Multiview")
(IF (EXISTS "sys:utilities/AmigaGuide")
(SET def-tool "SYS:Utilities/AmigaGuide")
(SET def-tool "more"))
)
(SET docs (ASKOPTIONS (PROMPT "In which languages shall the Doc files be installed?") (HELP docshelp)
(CHOICES "english" "deutsch")))
(IF (= @user-level 2)
(SET type (ASKOPTIONS (PROMPT "Which type of document shall be installed?") (HELP doctype_help) (CHOICES "AmigaGuide" "Ascii") (DEFAULT 1)))
(
(IF (= def-tool "more")
(
(SET type (ASKBOOL (prompt "Neither Multiview nor AmigaGuide was found! Shall the documentation be installed as ASCII ?") (help (CAT NoGuide_help doctype_help)) (choices "Yes" "No")))
(STARTUP "MathScript" (PROMPT "Assigns called 'MathScript:' and 'PSFonts:' are needed to use the program. Shall they be added to your User-Startup?") (HELP startuphelp) (COMMAND (CAT "Assign MathScript: " ziel) "\n" (CAT "Assign PSFonts: " (CAT "MathScript: " "add"))) )